<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<h1>预售抢先购</h1>
<h2>正在进行中：</h2>
<div style="display: flex;flex-wrap: wrap;width: 100%;height: 400px;background: antiquewhite">
    @foreach($data as $item)
<div style="width: 300px;height: 150px;border-radius: 10px;background: white;margin-top: 10px">
    <img style="float: left;margin-top: 20px" src="{{$item->pic}}">
    <div style="margin-top: 20px">{{$item->goods_name}}</div>
    <div style="margin-top: 10px">已预定{{$item->part1}}个</div>
    <div style="margin-top: 10px">
       <span style="color: red">预售价</span>
        <span>{{$item->pre_price}}</span>
    </div>
    <div style="margin-left: 80px">
    <button> <a>立即预订</a></button>
    </div>
</div>
    @endforeach
</div>
</body>
</html>
